package com.kefu.admin.modules.tgqmdj.service.impl;

import com.kefu.admin.modules.tgqmdj.mapper.TgdSpszMapper;
import com.kefu.admin.modules.tgqmdj.model.Article;
import com.kefu.admin.modules.tgqmdj.model.TgdSpsz;
import com.kefu.admin.modules.tgqmdj.service.TgdSpszService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TgdSpszServiceImpl implements TgdSpszService {

    @Autowired
    private TgdSpszMapper tgdSpszMapper;

    @Override
    public List<TgdSpsz> selectSpsz(TgdSpsz article) {
        return tgdSpszMapper.selectSpsz(article);
    }

    @Override
    public TgdSpsz querySpszByArticleId(Long articleid) {
        return tgdSpszMapper.querySpszByArticleId(articleid);
    }

    @Override
    public int updateSpsz(TgdSpsz article) {
        return tgdSpszMapper.updateSpsz(article);
    }

    @Override
    public int deleteSpsz(Long articleId) {
        return tgdSpszMapper.deleteSpsz(articleId);
    }
}
